package com.nf.health.app.intervention_details.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.nf.health.app.R;
import com.nf.health.app.activity.global.BaseActivity;
import com.nf.health.app.utils.ViewUtil;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 历史方案详情
 * Created by Administrator on 2016/11/29.
 */
public class HistorySchemeDetailsActivity extends BaseActivity {

    String id;
    @Bind(R.id.titlebar_right_view)
    ImageView titlebarRightView;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitleBar(R.layout.titlebar_base);
        setContent(R.layout.activity_history_scheme_details);
        ButterKnife.bind(this);
        ViewUtil.setText(this, R.id.titlebar_title_tv, "干预");
        initView();
    }

    private void initView() {
        id = getIntent().getStringExtra("id");
        provider.getHistorySchemeDetails(id);
        titlebarRightView.setImageResource(R.drawable.intervention_menu);
        titlebarRightView.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        super.onClick(v);

        switch (v.getId()){
            case R.id.titlebar_right_view:

                showToast("menu");

                break;
        }

    }
}
